package com.xca.znb.presenter;

import com.xca.znb.entity.Cart;
import com.xca.znb.entity.Goods;
import com.xca.znb.entity.Local;
import com.xca.znb.model.imodel.ICartClearing;

public class CartClearingPresenter {
    private ICartClearing iCartClearing;
    public CartClearingPresenter(ICartClearing iCartClearing){
        this.iCartClearing = iCartClearing ;
    }
    public Local getLocalById(int id) {
        return iCartClearing.getLocalById(id);
    }

    public Cart getCartById(int id) {
        return iCartClearing.getCartById(id);
    }

    public void updateCartNumById(int id, int num) {
        iCartClearing.updateCartNumById(id, num);
    }

    public Goods getGoodsById(int id) {
        return iCartClearing.getGoodsById(id);
    }
}
